<script type="text/javascript">
function submit()
{
	document.frmsearch.submit();
}
</script>
<div class="box white_bg " >
<div class="chitiet_bar">
<div class="chitiet_bar_left"></div>
<div class="chitiet_bar_right"><?=p($this->viewParams['nodeTypeInfo']['type']) ?></div>
</div>
<?//die($this->viewParams['form'])?>
<div style="border: 1px solid #999999; margin: 8px;">
<?if(isset($this->viewParams['successMessage'])) :?>
<div class="successMessage"> <?=$this->viewParams['successMessage']?> </div>
<?endif ?>
<?if(isset($this->viewParams['errorMessage'])) :?>
<div class="errorMessage"> <?=$this->viewParams['errorMessage']?> </div>
<?endif ?>
<br/>
<form name="frmsearch" id="new_<?=$this->viewParams['type']?>" action="<?=$this->viewParams['form']->getAction() ?>" method="<?=$this->viewParams['form']->getMethod() ?>">
<input type="hidden" name="cluSearch" value="1" />
<table width="100%">
<?
	$sess = new Zend_Session_Namespace(CLU_NS);
	if (strpos ($sess->userPermissions, 'administer ' . $this->viewParams['nodeTypeInfo']['type']))
:?>
<tr>
<td style="padding-left:5px" width="20%">
<?=t(15)?>:
</td>
<td colspan=3> <?=$this->viewParams['form']->terms ?>
</td>
</tr>
<tr>
<? if ($this->viewParams['nodeTypeInfo']['has_category'] && $this->viewParams['form']->category) :?>
	<tr>
	<td style="padding-left:5px" width="20%">
	<?=t(14)?>:
	</td>
	<td colspan=3> <?=$this->viewParams['form']->category ?>
	</td>
	</tr>
	<?endif ?>

	<tr>
	<td style="padding-left:5px" width="20%">
	<?=t(88)?>:
	</td>
	<td colspan=3> <?=$this->viewParams['form']->poster_name ?>
	</td>
	</tr>
	<?
		if (strpos ($sess->userPermissions, 'set status ' . $this->viewParams['nodeTypeInfo']['type']))
	:?>
	<tr>
	<td style="padding-left:5px" width="10%">
	<?=t(2)?>:
	</td>
	<td colspan=3> <?=$this->viewParams['form']->status ?>
	</td>
	</tr>
	<?endif?>
	<tr>
	<td style="padding-left:5px" width="10%">
	<?=t(626)?>:
	</td>
	<td colspan=3> <?=$this->viewParams['form']->order_by ?>
	</td>
	</tr>
	<tr>
	<td style="padding-left:5px; " width="10%">
	<?=t(3005)?>:
	</td>
	<td colspan=3 > <?=$this->viewParams['form']->asc_or_desc ?>
	</td>
	</tr>
	<tr>
	<td style="padding-left:5px" width="10%">
	<?=t(786)?> :
	</td>
	<td colspan=3> <?=$this->viewParams['form']->items_per_page ?>
	</td>
	</tr>

	<tr>
	<td style="padding-left:5px"></td>
	<td  class="sukien_box_right_search_right2" align="left" valign="middle"><a href="javascript:void();" onclick="submit();" > <?=t(627)?> </a></td>
	<td style="padding-left:5px" width="220"></td>
	<td style="padding-left:5px" width="220"></td>
	</tr>
	
	</table>
	<div align="center">
	<!--<input type="hidden" name="cluSearch" value="1" />-->
	<? if (isset($_REQUEST['searchAll'])) :?>
	<input type="hidden" name="searchAll" value="1" />
	<?endif ?>
	<?else:?>
	<tr>
	<td style="padding-left:5px" width="15%">
	<?=t(15)?>:
	</td>
	<td> <?=$this->viewParams['form']->terms ?>
	</td>
	<td style="padding-left:5px" width="15%">
	<?=t(626)?>:
	</td>
	<td> <?=$this->viewParams['form']->order_by ?>
	</td>
	</tr>
	<tr height="40">
	<td style="padding-left:5px; text-align: left;" width="15%">
	<?=t(3005)?>:
	</td>
	<td width="300" > <?=$this->viewParams['form']->asc_or_desc ?>
	</td>
	<td style="padding-left:5px; text-align: center;" width="15%">
	</td>
	<td width="100" class="sukien_box_right_search_right2" align="left" valign="middle"><a href="javascript:void();" onclick="submit();" > <?=t(627)?> </a></td>
	</tr>
	<!--  <input align="absmiddle" type="image" id="submit" src="/public/themes/hard/images/sukien-search.jpg"/>  -->
<?endif?>
<tr>
	<td width="200" colspan="4" align="center"> 
	</td>
	</tr>
</table>
</form>
</div>
</div>


